package com.acoreful.acf2java.admin.modules.auth.service;

import com.acoreful.acf2java.admin.modules.auth.model.AuthUser;
import com.acoreful.acf2java.admin.modules.auth.support.CurrentStaff;

public interface AuthService {
	
	public static final String ACCESS_TOKEN = "accessToken";

	/**
	 * 登录
	 * @param username
	 * @param password
	 * @return
	 */
	public AuthUser login(String username, String password);
	/**
	 * @param accessToken
	 * @return
	 */
	public CurrentStaff getCurrentStaff(final String accessToken);
	/**
	 * 认证
	 * @param currentStaff
	 */
	public void postAuthentication(CurrentStaff currentStaff);
	/**
	 * 登出
	 * @param currentStaff
	 */
	public void postLogout(CurrentStaff currentStaff); 
}
